//
//  QHDesViewController.m
//  QHCollectionDemo
//
//  Created by MOiMac on 2021/3/8.
//

#import "QHDesViewController.h"

@interface QHDesViewController ()

@property (weak, nonatomic) IBOutlet UIView *v;

@end

@implementation QHDesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.v.backgroundColor = self.viewBgColor;
}

- (void)setViewBgColor:(UIColor *)viewBgColor {
    _viewBgColor = viewBgColor;
    self.v.backgroundColor = viewBgColor;
}

- (IBAction)dismiss:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
